package com.asset.dispoal.verdict.service.converter;

import com.asset.dispoal.verdict.domain.db.entity.GbJudgmentBook;
import com.asset.dispoal.verdict.domain.db.entity.GbJudgmentBookItem;
import com.asset.dispoal.verdict.dto.mode.JudgmentItem;
import com.asset.dispoal.verdict.dto.request.CreateOrEditRequest;
import com.asset.dispoal.verdict.dto.request.JudgmentBookRequest;
import com.asset.dispoal.verdict.dto.response.JudgmentBookResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @description:
 * @author: yf
 * @date: 2022-09-06
 */
@Mapper
public interface GbJudgmentBookConverter {
    GbJudgmentBookConverter INSTANCE = Mappers.getMapper(GbJudgmentBookConverter.class);

    GbJudgmentBook reqToDoQo(JudgmentBookRequest request);

    List<JudgmentBookResponse> dosToRes(List<GbJudgmentBook> judgmentBooks);

    GbJudgmentBook reqToDo(CreateOrEditRequest request);

    List<JudgmentItem> gbToRes(List<GbJudgmentBookItem> gbJudgmentBookItems);
}
